package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HatchetSystemLookupCdeMapper;
import com.ruoyi.system.domain.HatchetSystemLookupCde;
import com.ruoyi.system.service.IHatchetSystemLookupCdeService;
import com.ruoyi.common.support.Convert;

/**
 * 字典编号 服务层实现
 * 
 * @author ruoyi
 * @date 2019-02-25
 */
@Service
public class HatchetSystemLookupCdeServiceImpl implements IHatchetSystemLookupCdeService 
{
	@Autowired
	private HatchetSystemLookupCdeMapper hatchetSystemLookupCdeMapper;

	/**
     * 查询字典编号信息
     * 
     * @param id 字典编号ID
     * @return 字典编号信息
     */
    @Override
	public HatchetSystemLookupCde selectHatchetSystemLookupCdeById(String id)
	{
	    return hatchetSystemLookupCdeMapper.selectHatchetSystemLookupCdeById(id);
	}
	
	/**
     * 查询字典编号列表
     * 
     * @param hatchetSystemLookupCde 字典编号信息
     * @return 字典编号集合
     */
	@Override
	public List<HatchetSystemLookupCde> selectHatchetSystemLookupCdeList(HatchetSystemLookupCde hatchetSystemLookupCde)
	{
	    return hatchetSystemLookupCdeMapper.selectHatchetSystemLookupCdeList(hatchetSystemLookupCde);
	}
	
    /**
     * 新增字典编号
     * 
     * @param hatchetSystemLookupCde 字典编号信息
     * @return 结果
     */
	@Override
	public int insertHatchetSystemLookupCde(HatchetSystemLookupCde hatchetSystemLookupCde)
	{
	    return hatchetSystemLookupCdeMapper.insertHatchetSystemLookupCde(hatchetSystemLookupCde);
	}
	
	/**
     * 修改字典编号
     * 
     * @param hatchetSystemLookupCde 字典编号信息
     * @return 结果
     */
	@Override
	public int updateHatchetSystemLookupCde(HatchetSystemLookupCde hatchetSystemLookupCde)
	{
	    return hatchetSystemLookupCdeMapper.updateHatchetSystemLookupCde(hatchetSystemLookupCde);
	}

	/**
     * 删除字典编号对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteHatchetSystemLookupCdeByIds(String ids)
	{
		return hatchetSystemLookupCdeMapper.deleteHatchetSystemLookupCdeByIds(Convert.toStrArray(ids));
	}
	
}
